import request from '@/utils/request'

// 上传文件
export function uploadFile(data: FormData) {
  return request.post('/agent/files/upload', {
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}

// 新的上传文件
export function uploadFileNew(data: FormData) {
  return request.post('/agent/files/uploadLocal', {
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}
